package flexlingo.vo
{
	import flash.events.Event;
	import flash.events.EventDispatcher;
	
	[Event]
	
	[Bindable]
	public class LangPackVO extends EventDispatcher
	{
		
		public function LangPackVO(key:String,value:String=null):void
		{
			this.key = key;
			if( this.value == null)
			{
				this.value = key;
			}
			else
			{
				this.value = value;
			}
			
		}
		
		
		private var _value : String;
		
		public function set value( value : String):void
		{
			this._value = value;
			dispatchEvent( new Event("lingoStringChanged"));	
		}
		public function get value():String
		{
			return _value;
		}
		
	
		public var key : String;
		
		[Bindable(event="lingoStringChanged")]
		public function getValue():String
		{
			return value;
		}
		
	
	}
}